package com.design;

/**
 * 商品信息
 */
public class Product {
    /**
     * 商品id
     */
    private String id;
    /**
     * 商品品牌
     */
    private String brand;
    /**
     * 商品名称
     */
    private String name;
    /**
     * 商品详情
     */
    private String info;
    /**
     * 商品库存
     */
    private int count;

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public Product(String id, String brand, String name, String info) {
        this.id = id;
        this.brand = brand;
        this.name = name;
        this.info = info;
    }

    @Override
    public String toString() {
        return "Product{" +
                "id='" + id + '\'' +
                ", brand='" + brand + '\'' +
                ", name='" + name + '\'' +
                ", info='" + info + '\'' +
                ", count=" + count +
                '}';
    }
}
